
//
//  RootViewController.m
//  Only Love
//
//  Created by xalo on 16/5/7.
//  Copyright © 2016年 海城. All rights reserved.
//

#import "RootViewController.h"
#import "MainViewController.h"
#import "ImpressionViewController.h"
#import "ContactsTableViewController.h"
#import "SettingTableViewController.h"


@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    ContactsTableViewController *gjContactsTVC = [[ContactsTableViewController alloc]init];
    UINavigationController *navC = [[UINavigationController alloc]initWithRootViewController:gjContactsTVC];
    
    SettingTableViewController *gjSettingTVC = [[SettingTableViewController alloc]init];
    UINavigationController *navD = [[UINavigationController alloc]initWithRootViewController:gjSettingTVC];
    
    
    UIStoryboard *zyMain = [UIStoryboard storyboardWithName:@"ZYMain" bundle:nil];
    UINavigationController *mainNavC = [zyMain instantiateViewControllerWithIdentifier:@"MainNavC"];
    
    UIStoryboard *main = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    UINavigationController *impressionNavC = [main instantiateViewControllerWithIdentifier:@"ImpressionNavC"];
    self.viewControllers = @[mainNavC,impressionNavC,navC,navD];
    
//    navD.tabBarItem.image = [UIImage imageNamed:@"settingNo.png"];
//    navD.tabBarItem.imageInsets = UIEdgeInsetsMake(6, 0, -6,0);
    navD.tabBarItem.title = @"我";
    navC.tabBarItem.title = @"私聊";
    mainNavC.tabBarItem.title =@"那些年";
    impressionNavC.tabBarItem.title = @"印记";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
